package org.sy.lab.Java7并发编程实战.一线程管理.四线程中断的控制;

import java.util.concurrent.TimeUnit;

public class Main {
	public static void main(String[] args) {
		FileSearch searcher = new FileSearch("c:\\", "233.txt");
		Thread thread = new Thread(searcher);
		thread.start();
		try {
			TimeUnit.SECONDS.sleep(5);
		} catch (InterruptedException e) {
			thread.interrupt();
		}
		thread.interrupt();
	}
}
